package com.yongqi.duocai.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 夏亮辉
 * @since 2021-07-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_refund")
@ApiModel(value="Refund对象", description="")
public class Refund implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "销售订单")
    private String orderNo;

    @ApiModelProperty(value = "退款编号")
    private String no;

    @ApiModelProperty(value = "状态(1-待审核， 2-已同意，3-等待物流，  4-已退款， 5-已驳回)")
    private Integer state;

    @ApiModelProperty(value = "是否需要退货")
    private Boolean isGoods;

    @ApiModelProperty(value = "应退金额")
    private BigDecimal allowMoney;

    @ApiModelProperty(value = "实退金额")
    private BigDecimal actualMoney;

    @ApiModelProperty(value = "物流编号")
    private Integer kdNo;

    @ApiModelProperty(value = "退款理由")
    private String reason;

    @ApiModelProperty(value = "备注")
    private String note;

    @ApiModelProperty(value = "驳回理由")
    private String resonRefusal;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime createTime;


}
